﻿<%@ Page Language="vb" AutoEventWireup="false" CodeBehind="AddDiscussion.aspx.vb" Inherits="HauntedNetworkingSite.AddDiscussion" %>

<%@ Register src="Banner.ascx" tagname="Banner" tagprefix="uc1" %>
<%@ Register assembly="AjaxControlToolkit" namespace="AjaxControlToolkit" tagprefix="asp" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Untitled Page</title>
    <style type="text/css">
        .style1
        {
            width: 100%;
        }
        .style2
        {
            width: 112px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    
        <uc1:Banner ID="Banner1" runat="server" />
    
    </div>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    <p>
        &nbsp;</p>
    
        <h2>&nbsp;</h2>
    <p>
        &nbsp;</p>
        
    <table class="style1">
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                <h2>Add a Discussion: </h2></td>
        </tr>
        <tr>
            <td class="style2" align="right">
                Title</td>
            <td>
                <asp:TextBox ID="tb_DiscussionTitle" runat="server" Width="600px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2" valign="top" align="right">
                Body</td>
            <td>
                <asp:TextBox ID="tb_DiscussionBody" runat="server" Height="180px" 
                    TextMode="MultiLine" Width="600px"></asp:TextBox>
            </td>
        </tr>
        <tr>
            <td class="style2" align="right">
                Category</td>
            <td>
                <asp:DropDownList ID="dropDown_DiscussionCategories" runat="server" 
                    DataSourceID="DiscussionCategoriesDataSource" DataTextField="Category_Title" 
                    DataValueField="ID">
                </asp:DropDownList>
                <asp:SqlDataSource ID="DiscussionCategoriesDataSource" runat="server" 
                    ConnectionString="<%$ ConnectionStrings:PlacesConnectionString %>" 
                    ProviderName="<%$ ConnectionStrings:PlacesConnectionString.ProviderName %>" 
                    
                    SelectCommand="SELECT [ID], [Category Title] AS Category_Title FROM [discussioncategories]">
                </asp:SqlDataSource>
            </td>
        </tr>
        <tr>
            <td class="style2" align="right">
                Tags</td>
            <td>
                <asp:TextBox ID="tb_discussionTags" runat="server"></asp:TextBox>
                <br />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                <br />
                <asp:Button ID="btn_AddDiscussion" runat="server" CssClass="buttonClass" 
                    Text="Add Discussion" />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                <br />
            </td>
        </tr>
        <tr>
            <td class="style2">
                &nbsp;</td>
            <td>
                <br />
                <br />
            </td>
        </tr>
    </table>
    <asp:ToolkitScriptManager ID="ToolkitScriptManager1" runat="server">
    </asp:ToolkitScriptManager>
   </form>
</body>
</html>
